package com.koron.order.inspect.service;

import com.github.pagehelper.PageInfo;
import com.koron.bean.query.PageQuery;
import com.koron.order.inspect.bean.po.OrderInspectionPo;
import com.koron.order.inspect.bean.query.OrderInspectionQuery;
import com.koron.order.inspect.bean.vo.OrderInspectionVo;
import org.koron.ebs.mybatis.SessionFactory;

import java.util.List;

/**
 * 工单抽查意见表(OrderInspection)表服务接口
 *
 * @author zhouj
 * @since 2022-01-14 10:16:20
 */
public interface OrderInspectionService {

    OrderInspectionPo insertOrUpdate(SessionFactory factory, OrderInspectionPo orderInspection);

    int insertOrUpdateBatch(SessionFactory factory, List<OrderInspectionPo> orderInspectionList);

    int insert(SessionFactory factory, OrderInspectionPo orderInspection);

    int insertBatch(SessionFactory factory, List<OrderInspectionPo> orderInspectionList);

    int update(SessionFactory factory, OrderInspectionPo orderInspection);

    int deleteById(SessionFactory factory, String id);

    OrderInspectionPo queryById(SessionFactory factory, String id);

    PageInfo queryPageList(SessionFactory factory, OrderInspectionPo orderInspection, PageQuery pageQuery);

    List<OrderInspectionPo> queryList(SessionFactory factory, OrderInspectionPo orderInspection);

    PageInfo<OrderInspectionVo> queryInspectPageList(SessionFactory factory, OrderInspectionQuery inspectionQuery, PageQuery pageQuery);

}
